﻿<%@ Page Language="C#" MasterPageFile="~/Default.master" AutoEventWireup="true" CodeFile="BorrowBook.aspx.cs" Inherits="BorrowBook" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <p class="title">
     图书借阅
        </p>
        <hr>
    <asp:Panel ID="Panel2" runat="server" Height="280px" Width="674px" HorizontalAlign="Center">
        <asp:Label ID="lbBase" runat="server" Text="图书馆名："></asp:Label>
        <asp:GridView ID="GridView1" runat="server" EnableViewState="False" Height="244px"
            SkinID="GridView" Width="668px" AutoGenerateColumns="False" DataKeyNames="BookID" Font-Size="9pt" OnRowDeleting="GridView1_RowDeleting">
            <Columns>
                <asp:TemplateField HeaderText="借阅">
                    <ItemTemplate>
                        <asp:CheckBox ID="chk" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <SelectedRowStyle Font-Size="9pt" />
            <AlternatingRowStyle Font-Size="9pt" />
        </asp:GridView>
        <asp:Button ID="btnConfirm1" runat="server" Text="确定" Width="92px" a OnClick="btnConfirm1_Click"/></asp:Panel>
     <p class="title">
         图书信息
        </p>
        <hr>
        <asp:Panel ID="Panel3" runat="server" Height="280px" Width="674px" HorizontalAlign="Center">
            <asp:DetailsView ID="DetailsView1" runat="server" Height="277px" SkinID="DetailsView"
                Width="545px" AutoGenerateRows="False" DataKeyNames="BookID" DataSourceID="SqlDataSource1" Font-Size="12pt">
                <Fields>
                    <asp:BoundField DataField="BookID" HeaderText="BookID" ReadOnly="True" SortExpression="BookID" />
                    <asp:BoundField DataField="ISBN" HeaderText="ISBN" SortExpression="ISBN" />
                    <asp:BoundField DataField="BookName" HeaderText="BookName" SortExpression="BookName" />
                    <asp:BoundField DataField="Author" HeaderText="Author" SortExpression="Author" />
                    <asp:BoundField DataField="PublishDate" HeaderText="PublishDate" SortExpression="PublishDate" />
                    <asp:BoundField DataField="BookVersion" HeaderText="BookVersion" SortExpression="BookVersion" />
                    <asp:BoundField DataField="WordCount" HeaderText="WordCount" SortExpression="WordCount" />
                    <asp:BoundField DataField="PageCount" HeaderText="PageCount" SortExpression="PageCount" />
                    <asp:BoundField DataField="Publisher" HeaderText="Publisher" SortExpression="Publisher" />
                    <asp:BoundField DataField="ClassID" HeaderText="ClassID" SortExpression="ClassID" />
                </Fields>
                <AlternatingRowStyle Font-Size="9pt" />
            </asp:DetailsView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:LibraryConnectionString %>"
                SelectCommand="SELECT * FROM [TBL_BookInfo] WHERE ([BookID] = @BookID)">
                <SelectParameters>
                    <asp:ControlParameter ControlID="GridView1" Name="BookID" PropertyName="SelectedValue"
                        Type="String" />
                </SelectParameters>
            </asp:SqlDataSource>
            &nbsp;
        </asp:Panel>
        <br />
</asp:Content>

